using System;
using System.Runtime.InteropServices;
using System.Text;

namespace org.synthful.NativeInterfaces
{
    /// <summary>
    /// Offered under Apache Public Licence 2.0
    /// synthful.org
    /// blessedgeek [@] synthful.org
    /// </summary>
    static public class SystemProfile
    {
        [DllImport("kernel32")]
        public static extern long WritePrivateProfileString(string section, string key,
            string val, string filePath);
        [DllImport("kernel32")]
        public static extern int GetPrivateProfileString(string section, string key, string def,
            StringBuilder retVal, int size, string filePath);
        [DllImport("kernel32")]
        public static extern int GetPrivateProfileSection(string section,
            byte[] retVal, int size, string filePath);
        [DllImport("kernel32")]
        public static extern int GetPrivateProfileSectionNames(
            byte[] retVal, int size, string filePath);
    }
}
